package io.ent.modules.product.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.ent.modules.product.entity.ProductInfoEntity;

import io.ent.modules.product.po.ProductInfoEntityIfPo;
import io.ent.modules.product.po.ProductInfoEntityTypePo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-10-14 15:50:16
 */
@Mapper
public interface ProductInfoDao extends BaseMapper<ProductInfoEntity> {
    IPage<ProductInfoEntityTypePo> getAllProductInfo(Page<ProductInfoEntityTypePo> page,@Param("name")String name,@Param("typeId") Integer typeId);
    IPage<ProductInfoEntityIfPo> getProductInfos(Page<ProductInfoEntityIfPo> page);
    IPage<ProductInfoEntityIfPo> getProductInfosByTypeId(Page<ProductInfoEntityIfPo> page,@Param("typeId") Integer typeId);
}
